package practise2.model;

/**
 * Created by Richard on 1/8/2015.
 */
public class BidirectionLinkedNode<T> {
    private T value ;
    private BidirectionLinkedNode<T> previous;
    private BidirectionLinkedNode<T> next;

    public BidirectionLinkedNode() {

    }

    public BidirectionLinkedNode(T value) {
        this.setValue(value);
    }


    public T getValue() {
        return value;
    }

    public void setValue(T value) {
        this.value = value;
    }

    public BidirectionLinkedNode<T> getPrevious() {
        return previous;
    }

    public void setPrevious(BidirectionLinkedNode<T> previous) {
        this.previous = previous;
    }

    public BidirectionLinkedNode<T> getNext() {
        return next;
    }

    public void setNext(BidirectionLinkedNode<T> next) {
        this.next = next;
    }
}
